package com.se.nju.rtvps.peerManagement;

public class Tree {
	
	private TreeNode root;
	
	public Tree(){
		this.root = null;
	}
	
	public Tree(Object value){
		root = new TreeNode(value);
	}
	
	public TreeNode getRoot(){
		return root;
	}
	
	public boolean addToGroup(Object value){
		return root.addChild(new TreeNode(value));
	}
	
	public boolean removeFromGroup(Object value){
		return root.removeChild(new TreeNode(value));
	}
}
